<?php
    session_start();
	if($_SESSION["admin"]=="")
	{
 	  echo "<script language=javascript>alert('登陆失效，请重新登陆');window.open('../login.php','_top')</script>";
	}
	if ($_SESSION["flag"]!=1){
	    echo "<script language=javascript>alert('访问无效，请先登录');window.open('../login.php','_top')</script>";
	}
?>